
#ifndef _APP_MANAGER_H_
#define _APP_MANAGER_H_



#include "config.h"
#include "framework/AppThread.h"
#include "msg/MsgManager.h"
#include <string>
namespace KEngine
{
	class System;
	class _KExport AppManager : public MsgManager<std::string,App>
	{
	public:
		AppManager(System* sys):_sys(sys)
		{

		}

		App* createApp(const char* name,App::AppType type);
		
		void init();

		void startAll();
		void start(const char* name);
		void stop(const char* name);
		void stopAll();
	private:
		System* _sys;
	};	
};

#endif

